import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '@/views/login/login'
import left from '@/views/left/left'
Vue.use(VueRouter)
const routes = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path:'/login',
    name:'登录',
    component:login
  },
  {
    path:'/left',
    name:'侧边栏',
    component:left,
    redirect: '/sdf',
    children:[
      {
        path: '/sdf',
        component: () => import('../views/sdf'),
      },
      {
        path: '/users',
        component: () => import('../views/my/my'),
     
      },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router

